package apis

import (
	v1 "gluenet/utils/rpc/labels"
	v2 "gluenet/utils/rpc/v2/labels"
)

// inter manager --> manager
const (
	GuidServiceRegister   = "apis.guid.register"
	GuidServiceUnRegister = "apis.guid.unregister"

	SchedulerServiceSchedule   = "apis.scheduler.schedule"
	SchedulerServiceUnSchedule = "apis.scheduler.unschedule"
	SchedulerEventResult       = "events.scheduler.results"
)

// bus rpc, use for agent --> manager
const (
	MangerGuid   = v1.ControlManager
	GuidRegister = v1.AgentGuidRegister
	LogPush      = v1.LogPush
	TracePush    = v1.TracePush
	MetricsPush  = v1.MetricsPush
	HeartBeat    = v1.HeartBeat
)

// bus strategy listen topic manager --> strategy
const (
	StrategyQueryInstanceAgent = v1.InstanceAgentInfo
)

// bus application report data
const (
	ApplicationReport = v1.ApplicationReport
)

// bus rpc, use for manager --> agent
const (
	RPCTraceSwitchOn    = v2.TracePushOn
	RPCTraceSwitchOff   = v2.TracePushOff
	RPCMetriceSwitchOn  = v2.MetricPushOn
	RPCMetriceSwitchOff = v2.MetricPushOff
	RPCLogSwitchOn      = v2.LogPushOn
	RPCLogSwitchOff     = v2.LogPushOff
)

const (
	RPCHelmListReleaseTopic     = v2.ListHelmRelease
	RPCHelmGetReleaseTopic      = v2.GetHelmRelease
	RPCHelmInstallChartTopic    = v2.InstallHelmChart
	RPCHelmUnInstallRealseTopic = v2.UnInstallHelmChart
	RPCHelmChartsUpdateTopic    = v2.UpdateHelmChart
	RPCHelmListChartsTopic      = v2.ListHelmChart
	RPCHelmGetChartsTopic       = v2.GetHelmChart
)

const (
	RPCContainerCreate = v2.CreateContainer
	RPCContaienrDelete = v2.DeleteContainer
)

const (
	RPCHttpProxyGet  = v2.HttpGetProxy
	RPCHttpProxyPost = v2.HttpPostProxy
)
